<?php
/***************************** 后台操作记录 *******************************/

namespace app\common\model;
use think\Model;

class Recording extends Model
{
    /**
     * @param $map
     * @param int $size
     * @param string $field
     * @return \think\Paginator
     * @throws \think\exception\DbException
     */
    public static function show($map, $size = 10, $field = '*')
    {
        return Recording::where($map)
            ->order('edit_time', 'desc')
            ->field($field)
            ->paginate($size, false, $config = ['query' => request()->param()]);
    }

    /**
     * 插入数据
     */
    public function insetData($data)
    {
        return $this->insert($data);
    }

}